package com.tangmin.demo;/**
 * @ClassName UserController
 * @Description TODO
 * @date 2021/9/17 21:35
 * @Version 1.0
 */

import com.tangmin.service.UserService;
import com.tangmin.service.impl.UserServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 表现层
 *
 * @author YourName
 * @date 2021-09-17 21:35
 **/
public class UserController {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = (UserService)app.getBean("UserService");
        userService.save();
    }
}
